import Vue from 'vue'
import App from './App'
import Toast from './components/Toast'

import '@/assets/styles/normalize.css'
import 'swiper/dist/css/swiper.min.css'
import '@/assets/flexible'
import router from './route'

const T = Vue.extend(Toast)
const toast = new T({
  el: document.createElement('div')
})
document.body.append(toast.$el)
Vue.prototype.$toast = toast.showToast

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App />'
})
